package com.atguigu.eduorder.client;

import com.atguigu.service.entity.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Classname MemberOrderClient
 * @Description TODO
 * @Date 2022/9/17 18:17
 * @Created by ZHL17
 */
@Component
@FeignClient(name="service-member",fallback =  MemberOrderClientImpl.class)
public interface MemberOrderClient {

    @PostMapping("/edumember/member/getMember/{id}")
    UcenterMember getMember(@PathVariable("id") String id);
}
